/**
 * 
 */
package com.alstudio.module.xmpp.request.proccesser.usersaction;

import java.util.ArrayList;

import com.alstudio.module.xmpp.protocol.xmpp.util.xmlcreator.iq.usersaction.AddUserToBlackListIQCreator;
import com.alstudio.module.xmpp.request.ALUiXmppRequestInvokeCallback;
import com.alstudio.pojo.module.user.User;

/**
 * 将用户加入黑名单
 * @author alonso lee
 *
 */
public class AddUserToBlackListRequestProccesser implements
		ALUiXmppRequestInvokeCallback {

	/* (non-Javadoc)
	 * @see com.alstudio.module.xmpp.request.ALUiXmppRequestInvokeCallback#getXmlData(java.lang.Object, java.lang.String)
	 */
	@Override
	public Object getXmlData(Object data, String domain) {
		// TODO Auto-generated method stub
		@SuppressWarnings("unchecked")
		ArrayList<User> tmp = (ArrayList<User>) data;
		AddUserToBlackListIQCreator iq = new AddUserToBlackListIQCreator(tmp,domain);
		return iq;
	}

}
